﻿<Window x:Class="CodeDocumentationSynchronizer.CodDocSync.GUI.WindowSyncCurrentMember"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:GUI="clr-namespace:CodeDocumentationSynchronizer.CodDocSync.GUI"
        Title="WindowSyncCurrentMember" Height="400" Width="400" WindowStartupLocation="CenterOwner" ShowInTaskbar="False" Loaded="Window_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <TreeView Name="TreeViewCodeElements" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Margin="5" />
        <ListView Name="ListViewHierarchy" Grid.Row="1" ItemsSource="{Binding}" Grid.Column="0" Grid.ColumnSpan="2" Margin="5">
            <ListView.View>
                <GridView>
                    <!--<GridViewColumn Header="Item" Width="Auto">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate DataType="ToggleButtonTreeViewItemOfCheckBox">
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>-->
                    <!--<GridViewColumn Header="Item" Width="Auto">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <GUI:ToggleButtonTreeViewItemOfCheckBox Text="{Binding LogicalPath}" IsChecked="True" ></GUI:ToggleButtonTreeViewItemOfCheckBox>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>-->
                    <!--<GridViewColumn Header="Item" Width="Auto">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <GUI:ToggleButtonTreeViewItemOfCheckBox IsEnabled="{Binding IsEnabled, Mode=OneTime}" Text="{Binding Text}" IsChecked="{Binding IsChecked}" ></GUI:ToggleButtonTreeViewItemOfCheckBox>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>-->
                    <GridViewColumn Header="Item" Width="Auto">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <CheckBox Name="Complete" IsThreeState="False" IsChecked="True" Checked="CheckBoxHierarchyItem_Checked" Unchecked="CheckBoxHierarchyItem_Uncheced">
                                    <StackPanel Orientation="Horizontal">
                                        <Image HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16" Source="{Binding CollapsedStateImage}"></Image>
                                        <Label Content="{Binding Text}" ></Label>
                                    </StackPanel>
                                </CheckBox>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                    <!--<GridViewColumn Header="Item" Width="Auto">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <CheckBox Name="Complete" IsThreeState="False" IsEnabled="{Binding IsEnabled, Mode=OneTime}" IsChecked="{Binding IsChecked, Mode=OneTime}" >
                                    <StackPanel Orientation="Horizontal">
                                        <Image HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16" Source="{Binding ExpandedStateImage}" ></Image>
                                        <Label Content="{Binding Text}" ></Label>
                                    </StackPanel>
                                </CheckBox>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>-->
                    <!--<GridViewColumn Header="Item" Width="Auto">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <CheckBox Name="Complete" IsThreeState="False"  IsChecked="True" Content="{Binding LogicalPath}" />
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>-->
                    <!--<GridViewColumn Header="Item" Width="Auto">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <CheckBox Name="Complete" IsThreeState="False" IsEnabled="{Binding IsEnabled, Mode=OneTime}" IsChecked="{Binding IsChecked, Mode=OneTime}" Content="{Binding Text}" />
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>-->
                    <!--<GridViewColumn Header="Item" Width="Auto">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <Image HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16" Stretch="Fill" Source="{Binding Image}"></Image>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>-->
                    <!--<GridViewColumn Header="Name" DisplayMemberBinding="{Binding Text}" Width="Auto" />-->
                </GridView>
            </ListView.View>
        </ListView>
        <Button Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="70" Name="ButtonOK" Content="OK" Margin="5" IsEnabled="False" Click="ButtonOK_Click"></Button>
        <Button Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="70" Name="ButtonCancel" Content="Cancel" Margin="5" Click="ButtonCancel_Click"></Button>
    </Grid>
</Window>
